package lagou.homework.lagou_homework_rocketmq.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "orderInfo")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
    @Id
    private String orderNo;
    private Integer num;
    private String userId;
    private Integer goodsId;
    private String goodsName;
    private String seckillId;
    private Double realPrice;
    //支付状态，0-未支付，1-已支付，2-超时，3-支付失败
    private Integer status;
    private Date expireTime;
    private Date createTime;
    private Date payTime;
}
